package com.wcl.application.spring.gateway.controller;

import com.wcl.application.spring.gateway.sdk.AuthCenterFeign;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/gateway")
public class GatewayController {

    @Resource
    private AuthCenterFeign authCenterFeign;

    @GetMapping("/test")
    public String test(String name) {
        return authCenterFeign.test(name);
    }
}
